<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
	<html:form action="/acc-mng">
		<logic:notEmpty name="accountsForm" property="accounts">
			<table class="table table-striped">
				<tr>
					<th>Account number</th>
					<th>Username</th>
				</tr>
				<logic:iterate id="accs" name="accountsForm" property="accounts">
					<tr>
						<td><bean:write name="accs" property="accountNumber" /></td>
						<td><bean:write name="accs" property="user.username" /></td>
					</tr>
				</logic:iterate>
			</table>
		</logic:notEmpty>
	</html:form>
</body>
</html>